/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.entity;

import cn.mcsys.myadmin.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 车辆状态Entity
 * @author leopold
 * @version 2018-08-13
 */
public class AirCarRecord extends DataEntity<AirCarRecord> {
	
	private static final long serialVersionUID = 1L;
	private AirCar airCar;		// air_car_id
	private Integer passengerSum;	//乘客数量
	private Date recordDate;		// 记录时间
	private String station;		// 记录的站点
	private Integer status;		// 记录当时状态
	private String note;		// 备注


	public AirCarRecord() {
		super();
	}

	public AirCarRecord(Integer id){
		super(id);
	}

	public AirCar getAirCar() {
		return airCar;
	}

	public void setAirCar(AirCar airCar) {
		this.airCar = airCar;
	}

	public Date getRecordDate() {
		return recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}
	
	@Length(min=0, max=32, message="记录的站点长度必须介于 0 和 32 之间")
	public String getStation() {
		return station;
	}

	public void setStation(String station) {
		this.station = station;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Length(min=0, max=64, message="备注长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getPassengerSum() {
		return passengerSum;
	}

	public void setPassengerSum(Integer passengerSum) {
		this.passengerSum = passengerSum;
	}
}